<template>
  <div>
    <div v-if="row.buy_number > 1">
      <div>{{ row.create_time }}</div>
      <div>
        <el-tag type="danger">{{ text }}</el-tag>
      </div>
    </div>
    <span v-else>{{ row.create_time }}</span>
  </div>
</template>

<script>
export default {
  props: {
    row: {
      type: Object,
      default: _ => {
        return {};
      }
    }
  },
  computed: {
    text() {
      return '第' + this.row.buy_number + '次购买';
    }
  }
};
</script>
